package com.yuntcm.group6.med_booking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuntcm.group6.med_booking.entity.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ScheduleMapper extends BaseMapper<Schedule> {
    // 若有自定义查询，比如根据医生 ID 查询排班，可在此定义
    @Select("select * from schedule where doctor_id = #{doctorId}")
    List<Schedule> selectByDoctorId(Integer doctorId);
}